<%
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
%>

<%
  @active_tab = "courses"
  add_crumb t(:courses_crumb, "Courses"), account_path(@account)
  add_crumb t(:search_results_crumb, "Search results for \"%{query}\"", :query => @query)
%>
<% content_for :page_title do %><%= t(:page_title, "Course Search results for \"%{query}\"", :query => @query) %><% end %>
<% content_for :right_side do %>
  {{> views/courses_right_side}}
<% end %>
<h2><%= t(:title, "Course Search Results for \"%{query}\"", :query => @query) %></h2>
<%= t(:no_results_message, "No Results Found") if @courses.empty? %>
<ul class='courses' style="list-style-type: none;">
  {{> views/course}}
  {{> views/course}}
</ul>
